#include"searcher.hpp"

const std::string input = "data/raw_html/raw.txt";

int main() {
    //测试
    ns_searcher::Searcher* search = new ns_searcher::Searcher();
    search->InitSearcher(input);

    std::string query;
    std::string json_string;
    while (true) {
        std::cout << "Please Enter Search Query: ";
        getline(std::cin, query);
        std::cout << query << std::endl;
        
        search->Search(query, &json_string);

        std::cout << json_string << std::endl;
    }

    delete search;
    return 0;
}